<%@ page language="java" import="java.util.*" pageEncoding="GB18030"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'test.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->


  </head>
  
  <body>
  <%
  //request.getSession(false);
  HttpSession s=request.getSession();
  out.print( s.hashCode());
   request.getSession().invalidate();
   request.getSession().hashCode();
  request.getSession().setAttribute("a","111");
  	out.println(request.getSession().getAttribute("a"));
   %>
    This is my JSP page. <br>
    
    <input id="ainput"  type="text">
     <input id="binput" type="text">
      <input id="cinput" type="text">
       <script type="text/javascript">
var a="a**,b,c**";
var ainput = document.getElementById("ainput");
ainput.value=a.split(",")[0];
document.getElementById("binput").value=a.split(",")[1];
document.getElementById("cinput").value=a.split(",")[2];
</script>
</body>
</html>
  
